package com.cj.apiserver.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * 签名工具
 * @author cc
 * @date 2025-03-23 14:40
 **/

public class StringUtils {


    public static String genSign(String body,String secretKey){
//        new Digester(DigestAlg)

        Digester md5 = new Digester(DigestAlgorithm.SHA256);
        String content =  body+"."+secretKey;

        return md5.digestHex(content);
    }
}
